require.config({
	urlArgs: "r=" + (new Date()).getTime(),
	baseUrl: './',
	paths: {
		//  ================ 
		//  = rquireJs = 
		//  ================ 	
		'domReady': '../assets/require/domReady',
		'css': '../assets/require/plugins/css.min',
		'text': '../assets/require/text',
		//  ============= 
		//  = bootstrap = 
		//  ============= 
		'bootstrap': '../assets/bootstrap/js/bootstrap.min',
		'jquery': '../assets/jquery/jquery.min',
		//  ============== 
		//  = knockout = 
		//  ============== 
		'knockout': '../assets/knockout/knockout',
		'ko-amd': '../assets/knockout/knockout-amd-helpers.min',
		'ko-map': '../assets/knockout/knockout.mapping-latest',
		'director': '../assets/director/director.min',
		'simpleCart': '../assets/theme/cake/js/simpleCart.min',
		'masonry': '../assets/plugins/masonry.pkgd.min',
		'imageLoaded': '../assets/plugins/imagesloaded.pkgd.min',
		'AnimOnScroll': '../assets/css/AnimOnScroll',
		'classie': '../assets/css/classie',
		'modernizr': '../assets/css/modernizr.custom',
		'app': 'modules/yzwApp'
	},
	shim: {
		'bootstrap': ['jquery'],
		'ko-amd': ['knockout'],
		'ko-map': ['knockout'],
		'masonry': ['jquery'],
		'imageLoaded': ['jquery'],
		'app': ['knockout', 'bootstrap'
			/*,
						'css!../assets/theme/default/css/plugin/animate.css',
						'css!../assets/theme/cake/css/bootstrap.css',
						'css!../assets/theme/cake/css/style.css'*/
		]
	},
	waitSeconds: 10
});
require(['domReady!', 'knockout', 'app', 'ko-amd'], function(domReady, ko, app) {
	ko.bindingHandlers.module.baseDir = "./";
	ko.amdTemplateEngine.defaultPath = "./";
	ko.amdTemplateEngine.defaultSuffix = ".tmpl.html";
	ko.amdTemplateEngine.defaultRequireTextPluginName = "text";
	ko.bindingHandlers.module.templateProperty = "embeddedTemplate";
	ko.applyBindings(app);
	app.init();
})